package opp.Abstract.RentCar;

public class Truck extends Vickie {
    //卡车
    int weight;//吨位

    public Truck(int weight) {
        this.weight=weight;
    }

    public int getWeight() {
        return weight;
    }


    public void setWeight(int weight) {
        this.weight = weight;
    }

    @Override
    double CountFee(int days) {
        double Fee=0;
        if (weight<=5)
        {
            Fee= 230 * days;
        }else
        {
            Fee= 280 * days;
        }
        return Fee;
    }
}
